<include file="__THEME__/header" />

<link rel="stylesheet" href="../Public/poll.css" type="text/css" media="screen" charset="utf-8" />
<link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
<div class="content"><!-- 内容 begin  -->
  <include file="__THEME__/apps" />
  <div class="main"> <!-- 右侧内容 begin  -->
    <div class=page_title> <!-- page_title begin -->
      <h2><img src="../Public/images/ico_app06.gif" />投票</h2>
    <div class="c"></div>
</div><!-- page_title end -->


  <div class="tab-menu"><!-- 切换标签 begin  -->
      <ul>
      <li><a href="__URL__/my"><span>我的投票</span></a></li>
      <li><a href="__URL__/index"><span>好友的投票</span></a></li>
      <li><a href="__URL__/all" class="on"><span>大家的投票</span></a></li>
      <li><a href="__URL__/addPoll"><span><div class="ico_add">&nbsp;</div>发起投票</span></a></li>
      </ul>
  </div><!-- 切换标签 end  -->
  <div class="pollBox">
	<div class="sidebar pt10">
      <div class="FSort">
        <div class="tit">所有投票</div>
        <ul>
          <li <php>if( $order == 'new' || !isset( $_GET['order'] ) ){</php> class="on" <php>}</php>><a href="__URL__/all/order/new">最新发表</a></li>
          <li <eq name="order" value="vote">class="on" </eq>><a href="__URL__/all/order/vote">投票排行</a></li>
          <li <eq name="order" value="comment">class="on" </eq>><a href="__URL__/all/order/comment">评论排行</a></li>
        </ul>
		<div class="btm"></div>
      </div>
	</div>
  <div class="LogList">
  		<ul>
        <volist name="data" id="vo">
       	  <li class="bg04">
          	<div class="box">
              <div class="c1"><span class="headpic50"><a href="__TS__/space/{$vo.uid}"  class="tips" rel="__TS__/Index/userInfo/uid/{$vo['uid']}"><img src="{$vo.uid|getUserFace}" /></a></span><a href="__TS__/space/{$vo.uid}" class="U">{$vo.name}</a></div>
          		<div class="c2">
       			  	<h3 class="f14px"><a href="__URL__/pollDetail/id/{$vo.id}" class="U"><strong>{$vo.title}</strong></a></h3>
                                                  <volist name="vo.opts" id="opt">
                                                    <php>if($vo['type'] == "0"){</php>
                                                    <p><input type="radio" name="checkbox" id="checkbox" disabled="true"/>
                                                      <php>}else{</php>
                                                      <p><input type="checkbox" name="checkbox" id="checkbox" disabled="true"/>
                                                      <php>}</php>
                                                      {$opt.name}</p>
                                                  </volist>
                <php>if( $vo['deadline'] < time() ){</php>
                                                  <p><span class="right">此投票由<a href="__TS__/space/{$vo.uid}">{$vo.name}</a>发起。</span><span class="cRed">已结束</span></p>
                                                  <php>}else{</php>
                    <p><span class="right cGray2">发起时间：{$vo.cTime|friendlyDate}&nbsp;投票：{$vo.vote_num}</span>．．．</p>
                    <php>}</php>
            	</div>
                <div class="c3">
                	<p class="cGray2"><span class="f18px fB"><a href="__URL__/pollDetail/id/{$vo.id}" class="cRed">{$vo.vote_num}人</a></span><br />
               	  参与投票</p>
                	<br />
                    <a href="__URL__/pollDetail/id/{$vo.id}" class="btna">去投票</a>
              </div>
            </div>
       	  </li>
          </volist>
      
        </ul>
        <div id="Pagination" class="pagination">{$html}</div>
  </div><!-- LogList end  -->
  </div>


  </div><!-- 画布 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
